import txios from '../../index'
import type { IDataType } from '../../types'
import { updateUserApi } from './type'
import type { IUserInfo } from './type'

export function updateUserInfo(newUserInfo: IUserInfo) {
  return txios.post<any>({
    url: updateUserApi.update,
    data: {
      newUserInfo
    }
  })
}
